package com.woniuxy.auth.controller;/*
@author houguai
@create 2021-01-06 14:19
*/


import com.woniuxy.ticketcommon.ResponceResult;
import org.apache.shiro.authz.AuthorizationException;
import org.springframework.web.bind.annotation.ExceptionHandler;

public class ExceptionCenter {

//    @ExceptionHandler({AuthorizationException.class})
//    public ResponceResult<String> handleException(AuthorizationException e){
//
//       ResponceResult<String> result=new ResponceResult<>();
//        if (e instanceof AuthorizationException){
//            result.setCode(500);
//            result.setMsg("你没有权限");
//
//
//        }
//        return result;
//    }

}
